Integrand size = 23, antiderivative size = 115 \[ \int \frac {d+e x+f x^2}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {e \left (5-2 x^2\right )}{18 \left (4-5 x^2+x^4\right )}+\frac {x \left (17 d+20 f-(5 d+8 f) x^2\right )}{72 \left (4-5 x^2+x^4\right )}+\frac {1}{432} (19 d+52 f) \text {arctanh}\left (\frac {x}{2}\right )-\frac {1}{54} (d+7 f) \text {arctanh}(x)+\frac {1}{27} e \log \left (1-x^2\right )-\frac {1}{27} e \log \left (4-x^2\right ) \]
1/18*e*(-2*x^2+5)/(x^4-5*x^2+4)+1/72*x*(17*d+20*f-(5*d+8*f)*x^2)/(x^4-5*x^ 2+4)+1/432*(19*d+52*f)*arctanh(1/2*x)-1/54*(d+7*f)*arctanh(x)+1/27*e*ln(-x ^2+1)-1/27*e*ln(-x^2+4)
Time = 0.05 (sec) , antiderivative size = 112, normalized size of antiderivative = 0.97 \[ \int \frac {d+e x+f x^2}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {1}{864} \left (\frac {12 \left (17 d x+20 f x-5 d x^3-8 f x^3+e \left (20-8 x^2\right )\right )}{4-5 x^2+x^4}+8 (d+4 e+7 f) \log (1-x)-(19 d+32 e+52 f) \log (2-x)-8 (d-4 e+7 f) \log (1+x)+(19 d-32 e+52 f) \log (2+x)\right ) \]
((12*(17*d*x + 20*f*x - 5*d*x^3 - 8*f*x^3 + e*(20 - 8*x^2)))/(4 - 5*x^2 + x^4) + 8*(d + 4*e + 7*f)*Log[1 - x] - (19*d + 32*e + 52*f)*Log[2 - x] - 8* (d - 4*e + 7*f)*Log[1 + x] + (19*d - 32*e + 52*f)*Log[2 + x])/864
Time = 0.37 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.10, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {2202, 27, 1432, 1084, 1492, 25, 1480, 220, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {d+e x+f x^2}{\left (x^4-5 x^2+4\right )^2} \, dx\) |
\(\Big \downarrow \) 2202 |
\(\displaystyle \int \frac {f x^2+d}{\left (x^4-5 x^2+4\right )^2}dx+\int \frac {e x}{\left (x^4-5 x^2+4\right )^2}dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \int \frac {f x^2+d}{\left (x^4-5 x^2+4\right )^2}dx+e \int \frac {x}{\left (x^4-5 x^2+4\right )^2}dx\) |
\(\Big \downarrow \) 1432 |
\(\displaystyle \int \frac {f x^2+d}{\left (x^4-5 x^2+4\right )^2}dx+\frac {1}{2} e \int \frac {1}{\left (x^4-5 x^2+4\right )^2}dx^2\) |
\(\Big \downarrow \) 1084 |
\(\displaystyle \int \frac {f x^2+d}{\left (x^4-5 x^2+4\right )^2}dx+\frac {1}{2} e \int \left (\frac {2}{27 \left (4-x^2\right )}+\frac {1}{9 \left (4-x^2\right )^2}-\frac {2}{27 \left (1-x^2\right )}+\frac {1}{9 \left (1-x^2\right )^2}\right )dx^2\) |
\(\Big \downarrow \) 1492 |
\(\displaystyle -\frac {1}{72} \int -\frac {-\left ((5 d+8 f) x^2\right )+d-20 f}{x^4-5 x^2+4}dx+\frac {1}{2} e \int \left (\frac {2}{27 \left (4-x^2\right )}+\frac {1}{9 \left (4-x^2\right )^2}-\frac {2}{27 \left (1-x^2\right )}+\frac {1}{9 \left (1-x^2\right )^2}\right )dx^2+\frac {x \left (-\left (x^2 (5 d+8 f)\right )+17 d+20 f\right )}{72 \left (x^4-5 x^2+4\right )}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {1}{72} \int \frac {-\left ((5 d+8 f) x^2\right )+d-20 f}{x^4-5 x^2+4}dx+\frac {1}{2} e \int \left (\frac {2}{27 \left (4-x^2\right )}+\frac {1}{9 \left (4-x^2\right )^2}-\frac {2}{27 \left (1-x^2\right )}+\frac {1}{9 \left (1-x^2\right )^2}\right )dx^2+\frac {x \left (-\left (x^2 (5 d+8 f)\right )+17 d+20 f\right )}{72 \left (x^4-5 x^2+4\right )}\) |
\(\Big \downarrow \) 1480 |
\(\displaystyle \frac {1}{72} \left (\frac {4}{3} (d+7 f) \int \frac {1}{x^2-1}dx-\frac {1}{3} (19 d+52 f) \int \frac {1}{x^2-4}dx\right )+\frac {1}{2} e \int \left (\frac {2}{27 \left (4-x^2\right )}+\frac {1}{9 \left (4-x^2\right )^2}-\frac {2}{27 \left (1-x^2\right )}+\frac {1}{9 \left (1-x^2\right )^2}\right )dx^2+\frac {x \left (-\left (x^2 (5 d+8 f)\right )+17 d+20 f\right )}{72 \left (x^4-5 x^2+4\right )}\) |
\(\Big \downarrow \) 220 |
\(\displaystyle \frac {1}{2} e \int \left (\frac {2}{27 \left (4-x^2\right )}+\frac {1}{9 \left (4-x^2\right )^2}-\frac {2}{27 \left (1-x^2\right )}+\frac {1}{9 \left (1-x^2\right )^2}\right )dx^2+\frac {1}{72} \left (\frac {1}{6} \text {arctanh}\left (\frac {x}{2}\right ) (19 d+52 f)-\frac {4}{3} \text {arctanh}(x) (d+7 f)\right )+\frac {x \left (-\left (x^2 (5 d+8 f)\right )+17 d+20 f\right )}{72 \left (x^4-5 x^2+4\right )}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{72} \left (\frac {1}{6} \text {arctanh}\left (\frac {x}{2}\right ) (19 d+52 f)-\frac {4}{3} \text {arctanh}(x) (d+7 f)\right )+\frac {x \left (-\left (x^2 (5 d+8 f)\right )+17 d+20 f\right )}{72 \left (x^4-5 x^2+4\right )}+\frac {1}{2} e \left (\frac {1}{9 \left (1-x^2\right )}+\frac {1}{9 \left (4-x^2\right )}+\frac {2}{27} \log \left (1-x^2\right )-\frac {2}{27} \log \left (4-x^2\right )\right )\) |
(x*(17*d + 20*f - (5*d + 8*f)*x^2))/(72*(4 - 5*x^2 + x^4)) + (((19*d + 52* f)*ArcTanh[x/2])/6 - (4*(d + 7*f)*ArcTanh[x])/3)/72 + (e*(1/(9*(1 - x^2)) + 1/(9*(4 - x^2)) + (2*Log[1 - x^2])/27 - (2*Log[4 - x^2])/27))/2
3.1.27.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[b, 2])^(- 1))*ArcTanh[Rt[b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Simp[1/c^p Int[ExpandIntegrand[(b/2 - q/2 + c*x)^p*(b/2 + q /2 + c*x)^p, x], x], x] /; !FractionalPowerFactorQ[q]] /; FreeQ[{a, b, c}, x] && IntegerQ[p] && NiceSqrtQ[b^2 - 4*a*c]
Int[(x_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Simp[1/2 Subst[Int[(a + b*x + c*x^2)^p, x], x, x^2], x] /; FreeQ[{a, b, c, p}, x]
Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] : > With[{q = Rt[b^2 - 4*a*c, 2]}, Simp[(e/2 + (2*c*d - b*e)/(2*q)) Int[1/( b/2 - q/2 + c*x^2), x], x] + Simp[(e/2 - (2*c*d - b*e)/(2*q)) Int[1/(b/2 + q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^2 - 4*a*c]
Int[((d_) + (e_.)*(x_)^2)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symb ol] :> Simp[x*(a*b*e - d*(b^2 - 2*a*c) - c*(b*d - 2*a*e)*x^2)*((a + b*x^2 + c*x^4)^(p + 1)/(2*a*(p + 1)*(b^2 - 4*a*c))), x] + Simp[1/(2*a*(p + 1)*(b^2 - 4*a*c)) Int[Simp[(2*p + 3)*d*b^2 - a*b*e - 2*a*c*d*(4*p + 5) + (4*p + 7)*(d*b - 2*a*e)*c*x^2, x]*(a + b*x^2 + c*x^4)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && LtQ[p, -1] && IntegerQ[2*p]
Int[(Pn_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Module[{n = Expon[Pn, x], k}, Int[Sum[Coeff[Pn, x, 2*k]*x^(2*k), {k, 0, n/2}]*(a + b *x^2 + c*x^4)^p, x] + Int[x*Sum[Coeff[Pn, x, 2*k + 1]*x^(2*k), {k, 0, (n - 1)/2}]*(a + b*x^2 + c*x^4)^p, x]] /; FreeQ[{a, b, c, p}, x] && PolyQ[Pn, x] && !PolyQ[Pn, x^2]
Time = 0.09 (sec) , antiderivative size = 105, normalized size of antiderivative = 0.91
method | result | size |
norman | \(\frac {\left (-\frac {5 d}{72}-\frac {f}{9}\right ) x^{3}+\left (\frac {17 d}{72}+\frac {5 f}{18}\right ) x -\frac {e \,x^{2}}{9}+\frac {5 e}{18}}{x^{4}-5 x^{2}+4}+\left (-\frac {19 d}{864}-\frac {e}{27}-\frac {13 f}{216}\right ) \ln \left (x -2\right )+\left (-\frac {d}{108}+\frac {e}{27}-\frac {7 f}{108}\right ) \ln \left (x +1\right )+\left (\frac {d}{108}+\frac {e}{27}+\frac {7 f}{108}\right ) \ln \left (x -1\right )+\left (\frac {19 d}{864}-\frac {e}{27}+\frac {13 f}{216}\right ) \ln \left (x +2\right )\) | \(105\) |
default | \(-\frac {\frac {d}{144}-\frac {e}{72}+\frac {f}{36}}{x +2}+\left (\frac {19 d}{864}-\frac {e}{27}+\frac {13 f}{216}\right ) \ln \left (x +2\right )+\left (-\frac {d}{108}+\frac {e}{27}-\frac {7 f}{108}\right ) \ln \left (x +1\right )-\frac {\frac {d}{36}-\frac {e}{36}+\frac {f}{36}}{x +1}-\frac {\frac {d}{36}+\frac {e}{36}+\frac {f}{36}}{x -1}+\left (\frac {d}{108}+\frac {e}{27}+\frac {7 f}{108}\right ) \ln \left (x -1\right )+\left (-\frac {19 d}{864}-\frac {e}{27}-\frac {13 f}{216}\right ) \ln \left (x -2\right )-\frac {\frac {d}{144}+\frac {e}{72}+\frac {f}{36}}{x -2}\) | \(130\) |
risch | \(\frac {\left (-\frac {5 d}{72}-\frac {f}{9}\right ) x^{3}+\left (\frac {17 d}{72}+\frac {5 f}{18}\right ) x -\frac {e \,x^{2}}{9}+\frac {5 e}{18}}{x^{4}-5 x^{2}+4}+\frac {19 \ln \left (x +2\right ) d}{864}-\frac {\ln \left (x +2\right ) e}{27}+\frac {13 \ln \left (x +2\right ) f}{216}-\frac {\ln \left (x +1\right ) d}{108}+\frac {\ln \left (x +1\right ) e}{27}-\frac {7 \ln \left (x +1\right ) f}{108}+\frac {\ln \left (1-x \right ) d}{108}+\frac {\ln \left (1-x \right ) e}{27}+\frac {7 \ln \left (1-x \right ) f}{108}-\frac {19 \ln \left (2-x \right ) d}{864}-\frac {\ln \left (2-x \right ) e}{27}-\frac {13 \ln \left (2-x \right ) f}{216}\) | \(141\) |
parallelrisch | \(-\frac {-240 e +96 f \,x^{3}-204 d x +76 \ln \left (x -2\right ) d +128 \ln \left (x -2\right ) e -32 \ln \left (x -1\right ) d -128 \ln \left (x -1\right ) e +32 \ln \left (x -2\right ) x^{4} e -208 \ln \left (x +2\right ) f +224 \ln \left (x +1\right ) f +96 e \,x^{2}-160 \ln \left (x -2\right ) x^{2} e +40 \ln \left (x -1\right ) x^{2} d +160 \ln \left (x -1\right ) x^{2} e -40 \ln \left (x +1\right ) x^{2} d +160 \ln \left (x +1\right ) x^{2} e +95 \ln \left (x +2\right ) x^{2} d -160 \ln \left (x +2\right ) x^{2} e +19 \ln \left (x -2\right ) x^{4} d -76 \ln \left (x +2\right ) d +128 \ln \left (x +2\right ) e +32 \ln \left (x +1\right ) d -128 \ln \left (x +1\right ) e +60 x^{3} d -56 \ln \left (x -1\right ) x^{4} f +56 \ln \left (x +1\right ) x^{4} f -52 \ln \left (x +2\right ) x^{4} f -260 \ln \left (x -2\right ) x^{2} f +280 \ln \left (x -1\right ) x^{2} f -280 \ln \left (x +1\right ) x^{2} f +260 \ln \left (x +2\right ) x^{2} f +52 \ln \left (x -2\right ) x^{4} f +208 \ln \left (x -2\right ) f -224 \ln \left (x -1\right ) f -8 \ln \left (x -1\right ) x^{4} d -32 \ln \left (x -1\right ) x^{4} e +8 \ln \left (x +1\right ) x^{4} d -32 \ln \left (x +1\right ) x^{4} e -19 \ln \left (x +2\right ) x^{4} d +32 \ln \left (x +2\right ) x^{4} e -95 \ln \left (x -2\right ) x^{2} d -240 f x}{864 \left (x^{4}-5 x^{2}+4\right )}\) | \(369\) |
((-5/72*d-1/9*f)*x^3+(17/72*d+5/18*f)*x-1/9*e*x^2+5/18*e)/(x^4-5*x^2+4)+(- 19/864*d-1/27*e-13/216*f)*ln(x-2)+(-1/108*d+1/27*e-7/108*f)*ln(x+1)+(1/108 *d+1/27*e+7/108*f)*ln(x-1)+(19/864*d-1/27*e+13/216*f)*ln(x+2)
Leaf count of result is larger than twice the leaf count of optimal. 217 vs. \(2 (100) = 200\).
Time = 0.31 (sec) , antiderivative size = 217, normalized size of antiderivative = 1.89 \[ \int \frac {d+e x+f x^2}{\left (4-5 x^2+x^4\right )^2} \, dx=-\frac {12 \, {\left (5 \, d + 8 \, f\right )} x^{3} + 96 \, e x^{2} - 12 \, {\left (17 \, d + 20 \, f\right )} x - {\left ({\left (19 \, d - 32 \, e + 52 \, f\right )} x^{4} - 5 \, {\left (19 \, d - 32 \, e + 52 \, f\right )} x^{2} + 76 \, d - 128 \, e + 208 \, f\right )} \log \left (x + 2\right ) + 8 \, {\left ({\left (d - 4 \, e + 7 \, f\right )} x^{4} - 5 \, {\left (d - 4 \, e + 7 \, f\right )} x^{2} + 4 \, d - 16 \, e + 28 \, f\right )} \log \left (x + 1\right ) - 8 \, {\left ({\left (d + 4 \, e + 7 \, f\right )} x^{4} - 5 \, {\left (d + 4 \, e + 7 \, f\right )} x^{2} + 4 \, d + 16 \, e + 28 \, f\right )} \log \left (x - 1\right ) + {\left ({\left (19 \, d + 32 \, e + 52 \, f\right )} x^{4} - 5 \, {\left (19 \, d + 32 \, e + 52 \, f\right )} x^{2} + 76 \, d + 128 \, e + 208 \, f\right )} \log \left (x - 2\right ) - 240 \, e}{864 \, {\left (x^{4} - 5 \, x^{2} + 4\right )}} \]
-1/864*(12*(5*d + 8*f)*x^3 + 96*e*x^2 - 12*(17*d + 20*f)*x - ((19*d - 32*e + 52*f)*x^4 - 5*(19*d - 32*e + 52*f)*x^2 + 76*d - 128*e + 208*f)*log(x + 2) + 8*((d - 4*e + 7*f)*x^4 - 5*(d - 4*e + 7*f)*x^2 + 4*d - 16*e + 28*f)*l og(x + 1) - 8*((d + 4*e + 7*f)*x^4 - 5*(d + 4*e + 7*f)*x^2 + 4*d + 16*e + 28*f)*log(x - 1) + ((19*d + 32*e + 52*f)*x^4 - 5*(19*d + 32*e + 52*f)*x^2 + 76*d + 128*e + 208*f)*log(x - 2) - 240*e)/(x^4 - 5*x^2 + 4)
Timed out. \[ \int \frac {d+e x+f x^2}{\left (4-5 x^2+x^4\right )^2} \, dx=\text {Timed out} \]
Time = 0.19 (sec) , antiderivative size = 106, normalized size of antiderivative = 0.92 \[ \int \frac {d+e x+f x^2}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {1}{864} \, {\left (19 \, d - 32 \, e + 52 \, f\right )} \log \left (x + 2\right ) - \frac {1}{108} \, {\left (d - 4 \, e + 7 \, f\right )} \log \left (x + 1\right ) + \frac {1}{108} \, {\left (d + 4 \, e + 7 \, f\right )} \log \left (x - 1\right ) - \frac {1}{864} \, {\left (19 \, d + 32 \, e + 52 \, f\right )} \log \left (x - 2\right ) - \frac {{\left (5 \, d + 8 \, f\right )} x^{3} + 8 \, e x^{2} - {\left (17 \, d + 20 \, f\right )} x - 20 \, e}{72 \, {\left (x^{4} - 5 \, x^{2} + 4\right )}} \]
1/864*(19*d - 32*e + 52*f)*log(x + 2) - 1/108*(d - 4*e + 7*f)*log(x + 1) + 1/108*(d + 4*e + 7*f)*log(x - 1) - 1/864*(19*d + 32*e + 52*f)*log(x - 2) - 1/72*((5*d + 8*f)*x^3 + 8*e*x^2 - (17*d + 20*f)*x - 20*e)/(x^4 - 5*x^2 + 4)
Time = 0.32 (sec) , antiderivative size = 109, normalized size of antiderivative = 0.95 \[ \int \frac {d+e x+f x^2}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {1}{864} \, {\left (19 \, d - 32 \, e + 52 \, f\right )} \log \left ({\left | x + 2 \right |}\right ) - \frac {1}{108} \, {\left (d - 4 \, e + 7 \, f\right )} \log \left ({\left | x + 1 \right |}\right ) + \frac {1}{108} \, {\left (d + 4 \, e + 7 \, f\right )} \log \left ({\left | x - 1 \right |}\right ) - \frac {1}{864} \, {\left (19 \, d + 32 \, e + 52 \, f\right )} \log \left ({\left | x - 2 \right |}\right ) - \frac {5 \, d x^{3} + 8 \, f x^{3} + 8 \, e x^{2} - 17 \, d x - 20 \, f x - 20 \, e}{72 \, {\left (x^{4} - 5 \, x^{2} + 4\right )}} \]
1/864*(19*d - 32*e + 52*f)*log(abs(x + 2)) - 1/108*(d - 4*e + 7*f)*log(abs (x + 1)) + 1/108*(d + 4*e + 7*f)*log(abs(x - 1)) - 1/864*(19*d + 32*e + 52 *f)*log(abs(x - 2)) - 1/72*(5*d*x^3 + 8*f*x^3 + 8*e*x^2 - 17*d*x - 20*f*x - 20*e)/(x^4 - 5*x^2 + 4)
Time = 0.06 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.93 \[ \int \frac {d+e x+f x^2}{\left (4-5 x^2+x^4\right )^2} \, dx=\ln \left (x-1\right )\,\left (\frac {d}{108}+\frac {e}{27}+\frac {7\,f}{108}\right )-\ln \left (x+1\right )\,\left (\frac {d}{108}-\frac {e}{27}+\frac {7\,f}{108}\right )-\ln \left (x-2\right )\,\left (\frac {19\,d}{864}+\frac {e}{27}+\frac {13\,f}{216}\right )+\ln \left (x+2\right )\,\left (\frac {19\,d}{864}-\frac {e}{27}+\frac {13\,f}{216}\right )+\frac {\left (-\frac {5\,d}{72}-\frac {f}{9}\right )\,x^3-\frac {e\,x^2}{9}+\left (\frac {17\,d}{72}+\frac {5\,f}{18}\right )\,x+\frac {5\,e}{18}}{x^4-5\,x^2+4} \]